<include file="Public/head" />

<body class="no-skin">
    <include file="Public/header" />
    <div class="main-container" id="main-container">
        <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {}
        </script>
        <include file="Public/sidebar" />
        <div class="main-content">
            <div class="main-content-inner">
                <!-- #section:basics/content.breadcrumbs -->
                <include file="Public/breadcrumbs" />
                <!-- /section:basics/content.breadcrumbs -->
                <div class="page-content">
                    <include file="Public/set" />
                    <!-- /section:settings.box -->
                    <div class="row">
                        <div class="col-xs-12">
                            <!-- PAGE CONTENT BEGINS -->
                            <div class="row">
                                <form class="form-inline" action="" method="get">
                                    <label class="inline">活动名称</label>
                                    <input type="text" name="keyword" value="{:I(keyword)}" class="form-control">
                                    <label class="inline">&nbsp;&nbsp;排序：</label>
                                    <select name="order" class="form-control">
                                        <option <if condition="I('order') eq asc">selected</if> value="asc">活动时间升</option>
                                        <option <if condition="I('order') eq desc">selected</if> value="desc">活动时间降</option>
                                    </select>
                                    <button type="submit" class="btn btn-purple btn-sm">
                                        <span class="ace-icon fa fa-search icon-on-right bigger-110"></span> 搜索
                                    </button>
                                    <a class="btn btn-info btn-sm " href="{:U('add')}" value=""><i class="fa fa-plus"></i> 新增 </a>
                                </form>
                            </div>
                            <div class="space-4"></div>
                            <div class="row">
                                <form id="form" method="post" action="{:U('del')}">
                                    <table class="table table-striped table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th>ID</th>
                                                <th>标题</th>
                                                <th>排序</th>
                                                <th>开始时间</th>
                                                <th>结束时间</th>
                                                <th>创建时间</th>
                                                <th>操作</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <volist name="list" id="val">
                                                <tr id="item{$val.id}">
                                                    <td class=" sorting_1">{$val.id}</td>
                                                    <td class=" ">{$val.name}</td>
                                                    <td class=" ">{$val.sorts}</td>
                                                    <td class=" ">{$val.stime}</td>
                                                    <td class=" ">{$val.etime}</td>
                                                    <td class=" ">{$val.ctime}</td>
                                                    <td class="center ">
                                                        <a href="{:U('edit',array('id'=>$val['id']))}" class="green "><i class="fa fa-edit"></i> 编辑</a>&nbsp;&nbsp;
                                                        <a href="{:U('del',array('id'=>$val['id']))}" class="red del"><i class="fa fa-trash-o"></i> 删除</a>
                                                    </td>
                                                </tr>
                                            </volist>
                                        </tbody>
                                    </table>
                                </form>
                                {$page}
                            </div>
                            <!-- PAGE CONTENT ENDS -->
                        </div>
                        <!-- /.col -->
                    </div>
                    <!-- /.row -->
                </div>
                <!-- /.page-content -->
            </div>
        </div>
        <!-- /.main-content -->
        <include file="Public/footer" />
    </div>
    <!-- /.main-container -->
    <include file="Public/footerjs" />
    <script src="__PUBLIC__/admin/js/amall/activity/activity.js"></script>
    <!-- inline scripts related to this page -->
</body>

</html>